package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.TransferListMapper;
import com.whq.entity.TransferList;
import com.whq.service.TransferListService;

@Service(value = "tdTransferListService")
public class TransferListServiceImpl implements TransferListService {

    @Autowired
    private TransferListMapper<TransferList>tdTransferListMapper;
    
    @Override
    public Integer insertSelective(TransferList tdTransferList) throws Exception {
           return this.tdTransferListMapper.insertSelective(tdTransferList);
        }

    @Override
    public Integer insertBatch(List<TransferList> tdTransferList) throws Exception {
           return this.tdTransferListMapper.insertBatch(tdTransferList) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdTransferListMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdTransferListMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(TransferList tdTransferList) {
           return this.tdTransferListMapper.updateByPrimaryKeySelective(tdTransferList);
    }

    @Override
    public TransferList findById(Object id) {
           return (TransferList) this.tdTransferListMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TransferList> selectByCondition(TransferList tdTransferList) {
           return (List<TransferList>) this.tdTransferListMapper.selectByCondition(tdTransferList);
    }

    @Override
    public Integer selectCountByCondition(TransferList tdTransferList) {
           return  this.tdTransferListMapper.selectCountByCondition(tdTransferList);
    }

}
